fix: quota 命令不再要求管理员权限 - #4
Merged
Merged
Conversation
/newapi quota 移除 AstrBot 管理员权限要求,与 /newapi channel、 /newapi flow 保持一致,均对绑定 new-api 实例的会话开放。
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues remain.
Pull request overview
Aligns /newapi quota, /newapi channel, and /newapi flow permissions around session binding.
Changes:
- Removes the administrator-only restriction from
quota. - Updates documentation, changelog, and version to 1.4.1.
File summaries
| File | Description |
|---|---|
README.md |
Updates permission documentation |
metadata.yaml |
Bumps plugin version |
main.py |
Removes the admin restriction and updates documentation |
CHANGELOG.md |
Records the permission change |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景:/newapi quota 当前带有 @filter.permission_type(PermissionType.ADMIN),仅 AstrBot 管理员可执行;而 /newapi channel 与 /newapi flow 没有权限装饰器,仅受「会话是否绑定 new-api 实例」控制。两者权限行为不一致。
变更:
插件为只读查询,不修改渠道、不消费重置次数,放开权限不引入写操作风险。